package com.luck.dao;

import com.luck.model.po.Blog;
import com.luck.model.pojo.PageRequest;
import com.luck.model.dto.BlogInfoDto;
import org.apache.ibatis.annotations.Param;

import java.util.List;
public interface BlogMapper {
    int deleteByPrimaryKey(Integer blogId);

    int insert(Blog record);

    int insertSelective(Blog record);

    Blog selectByPrimaryKey(Integer blogId);

    int updateByPrimaryKeySelective(Blog record);

    int updateByPrimaryKey(Blog record);

    List<Blog> getBlogs();

    Integer getPageBlogInfoCount();

    List<BlogInfoDto> getPageBlogInfo(@Param("pageRequest") PageRequest pageRequest);

    BlogInfoDto getBlogInfo(Integer blogId);
}